package com.three.lab.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class BannerBean implements Parcelable {

    private String img;
    private String text;

    public BannerBean() {
    }

    public BannerBean(String img, String text) {
        this.img = img;
        this.text = text;
    }

    protected BannerBean(Parcel in) {
        img = in.readString();
        text = in.readString();
    }

    public static final Creator<BannerBean> CREATOR = new Creator<BannerBean>() {
        @Override
        public BannerBean createFromParcel(Parcel in) {
            return new BannerBean(in);
        }

        @Override
        public BannerBean[] newArray(int size) {
            return new BannerBean[size];
        }
    };

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(img);
        dest.writeString(text);
    }
}
